{foreach from=$modules item="mod"}
	<h3 title="Test">{$mod.title}</h3>
	<div class="contentbox_box_wide">
		<div class="contentbox_header">&nbsp;</div>
		<div class="contentbox_inner">

			<div class="box_label">Status</div>	
			<div class="box_content" style="width:540px";>
			<a href="javascript:void(0);" onclick="{literal}xajax.request({ccdsfun:'toggleActive',ccdsclass:'ccdsPluginInstaller'},{parameters:[{{/literal}project_id:{$project_id},module_id:'{$mod.id}'{literal}}]});{/literal}"><img src="{$LIBRARY_WEB}/famfamfam/icons/plugin_go.png" border="0">
				{if 1 == $mod.active}
					<span style="color:green">aktiviert</span>
				{else}
					<span style="color:red">deaktiviert</span>
				{/if}
				</a>
			</div>
			<div class="clear"></div>

			<div class="box_label">Version</div>	
			<div class="box_content" style="width:540px";>
				{$mod.name} {$mod.version}
				{if isset($mod.update)}
					<br />
					 <span style="color:red;font-weight:bold">Update verfügbar - Version {$mod.update}</span><br />
					<a href="javascript:void(0);" onclick="{strip}{literal}
				xajax.request(
					{
						ccdsclass:'ccdsPluginInstaller',
						ccdsfun:'update'
					},
					{
						parameters:[{
						 {/literal}
						 project_id:{$project_id},
						 module_id:{$mod.id},
						 module_name:'{$mod.name}'
						 {literal}
						}]
					}
				);
			{/literal}{/strip}">&laquo; Update installieren &raquo;</a>
				{/if}
			</div>
			<div class="clear"></div>


			<div class="box_label">Datum</div>	
			<div class="box_content" style="width:540px";>
				{$mod.pub_date}
			</div>
			<div class="clear"></div>

			<div class="box_label">Autor:</div>	
			<div class="box_content" style="width:540px";>
				{$mod.author}
			</div>
			<div class="clear"></div>

			<div class="box_label">Website:</div>	
			<div class="box_content" style="width:540px";>
				<a href="{$mod.website}" target="_blank">{$mod.website} &raquo;</a>
			</div>
			<div class="clear"></div>


			<div class="box_label">Beschreibung</div>	
			<div class="box_content" style="width:540px";>
				{$mod.description}
			</div>
			{if 0 < $mod.dependencies|@count}

				<div class="box_label">Erforderliche Plugins</div>	
				<div class="box_content" style="width:540px";>
				{foreach from=$mod.dependencies item="dep"}
					- {$dep.plugin} - {$dep.version}<br />
				{/foreach}
				</div>
			{/if}
			<div class="clear"></div>
		</div> {* /contentbox_inner *}
	</div> {* /contentbox *}
	<br />
{/foreach}

